﻿using System;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;

namespace WeatherSystem
{
    /// <summary>
    /// 天气 Volume
    /// </summary>
    [Serializable, VolumeComponentMenu("VolumeAndFeature/WeatherVolume")]
    public class WeatherVolume : VolumeComponent, IPostProcessComponent
    {
        [InspectorName("主光源颜色")]
        public ColorParameter sunColor = new ColorParameter(Color.white, false);
        [InspectorName("主光源强度")]
        public FloatParameter sunColorIntensity = new FloatParameter(1f, false);
        [InspectorName("环境光颜色")]
        public ColorParameter ambientColor = new ColorParameter(Color.white, false);
        
        public bool IsActive() => true;
        public bool IsTileCompatible() => true;
    }
}
